<?php include('functions.php'); ?>
<html>
<head>
<title>oPanel V<?php echo $ver; ?></title>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet"href="style.css">
</head>
<body>
<?php
if(!isset($_SESSION["pass"])) {
die("</body></html>");
} elseif ($_SESSION["pass"] != check($_SESSION["user"])) {
die("</body></html>");
}
?>
<a href="dumpit.php"><img src="images/trash.gif" border="0"></a><b><font class=med><a href="javascript:void()">Trash</a></font></b> 
<br>
<font class=med>Click on the trashcan to empty it.<br>Click on an object below to restore it.</font> 
<hr>
<font class=med><?php
$dir    = $_SESSION["trashdir"];
$lines = scandir($dir);
if(is_array($lines)) {
foreach ($lines as $line_num => $line) {
if ($line != ".") {
 if ($line != "..") {
   echo "<a href=\"restore.php?file=$line\">" . $line . "</a><br>";
}
 }
  }
} else { echo '<span style="color: #999999">There are no files in the trashcan</span>'; } // END if is_array
?></font>
</body>

</html>